<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>溢出属性</title>
    <style>
        div{
            width: 200px;
            height: 200px;
            background: yellow;
            /* visible:可见(默认值) hidden:隐藏 scroll:显示滚动条 auto:溢出显示滚动条，否则不显示  inherit:继承父元素*/
            overflow: inherit;
            /* 在对应方向上有效果 */
            /* overflow-y: auto; */
        }
    </style>
</head>
<body>
    <div>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nam voluptatibus qui laborum dignissimos natus cum voluptate adipisci perferendis eum hic, possimus similique nemo a itaque facere, laboriosam minima consequatur ad.</div>
</body>
</html>